package com.module.check;

import base.util.Page;

import com.module.check.manager.TestimonyTaskManager;
import com.module.check.vo.TestimonyTask;

public class TestimonyTaskService {
	
	public Page list(TestimonyTask bean, Integer start, Integer limit)
	throws Exception {
		Page page = new Page();
		page.setStart(start);
		page.setLimit(limit);
		TestimonyTaskManager manager = TestimonyTaskManager.getInstance();
		page = manager.list(page, bean);
		return page;
	}
	
	public String down(Long testimonyId)throws Exception
	{
		TestimonyTaskManager manager = TestimonyTaskManager.getInstance();
		String url = manager.getFileUrl(testimonyId);
		return url;
	}
}
